#include("/common/_body.html")

#define page_content()
<div class="row">
	<div class="col-xs-2">
		<ul id="tt"></ul>
	</div>
	<div class="col-xs-10">
		<div class="row">
			<div class="col-sm-12 search-collapse no-margin-top">
				<h4 class="blue smaller">
					配置角色【#(role_name)】的资源
					<span class="smaller-40 dark" style="margin-left:10px">
						<label>
							<input id="select_all_btn" type="checkbox" class="ace" onclick="selectAllM(this)">
							<span class="lbl">全选/反选</span>
						</label>
					</span>
				</h4>
				<form class="form-horizontal" id="ff" method="post">
					<input type="hidden" name="role_id" id="role_id" value="#(role_id)">
					<input type="hidden" name="resource_id" id="resource_id">	
					<div class="form-group">
						<label class="col-sm-3 control-label">权限关键字：</label>
						<div class="col-sm-9">
							<div class="well well-sm">
								<div id="auth_signs_container" class="row">
									
								</div>
							</div>
						</div>
					</div>
					<div class="hr"></div>
					<div class="form-group no-margin-bottom">
						<div class="col-md-offset-3 col-md-9">
							#auth_has("role_save")
							<button class="btn btn-info btn-sm no-border" id="saveBtn" type="button" onclick="saveM()">
								<i class="fa fa-pencil"></i>
								确定 
							</button>
							#end
							&nbsp; &nbsp; &nbsp;
							<button class="btn btn-yellow btn-sm no-border" type="button" onclick="backM()">
								<i class="fa fa-undo"></i>
								返回列表
							</button>
						</div>
					</div>
				</form>
	    	
	    	</div>
		</div>
	</div>
</div>
#end

#define js()
<script src="#(path)/js/templates/pdc/role_resource_list.js"></script>
#end